import fetch from '@/utils/fetch'

export function getCity(query) {
  return fetch({
    url: '/dashboard/citylist',
    method: 'get',
    params: query
  })
}
export function product(query) {
  return fetch({
    url: '/dashboard/product',
    method: 'get',
    params: query
  })
}

export function mapList(query) {
  return fetch({
    url: '/dashboard/getmapList',
    method: 'get',
    params: query
  })
}

export function mapDataList(query) {
  return fetch({
    url: '/dashboard/getDataMapList',
    method: 'get',
    params: query
  })
}

export function cupList(query) {
  return fetch({
    url: '/performance/getList',
    method: 'get',
    params: query
  })
}

export function chinaJson() {
  return fetch({
    url: '/js/china.json',
    method: 'get'
  })
}

export function appAccess() {
  return fetch({
    url: '/liveFeed/cat/appAccess',
    method: 'get'
  })
}

export function appProvinceReq() {
  return fetch({
    url: '/liveFeed/uba/appProvinceReq',
    method: 'get'
  })
}

export function queryData(query) {
  return fetch({
    url: '/realTimeScreen/queryData',
    method: 'get',
    params: query
  })
}

export function bigqueryData(query) {
  return fetch({
    url: '/realTimeScreen/queryDataByCity',
    method: 'get',
    params: query
  })
}

export function appCrash() {
  return fetch({
    url: '/liveFeed/uba/appCrash',
    method: 'get'
  })
}

export function updatepfrefresh(query) {
  return fetch({
    url: '/performance/updatepfrefresh',
    method: 'get',
    params: query
  })
}

export function getCurrentPfStatus() {
  return fetch({
    url: '/performance/getCurrentPfStatus',
    method: 'get'
  })
}
